# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=py3-nmea2
_pkgname=pynmea2
pkgver=1.18.0
pkgrel=2
pkgdesc="Python library for the NMEA 0183 protocol"
url="https://github.com/Knio/pynmea2"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Knio/pynmea2/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest .
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
e3e12fc04ba8d53a3f3aea2361e7e1cf9ac9f09a4d595f7010ed9175430f4bd3e19727af53ea051407caf112175f36dfd3240dd0fdc7ebcafef1122c57e3bf1f  py3-nmea2-1.18.0.tar.gz
"
